Template problem
Hi,
I'm having a problem when using template.
I don't know why, but when I try to open an inherited report, the PageCount property is 1!
I've created a simple example:
- A father report with just ReportTitle and a Footer;
- A child that extends the father.
The result of below code is 1 (one):
frxReport1.LoadFromFile('child.fr3');
ShowMessage(IntToStr(frxReport1.PagesCount));
Apparently the FastReport is missing the Page Tab, just reading the Data Tab.
What is weird, is that the father report and the child is too simple.
What am I doing wrong ? Is this a bug ?
I'm using the last version.
Please just create an example like I described above.
Thanx!
Best Regards
Thiago Flessak
I'm having a problem when using template.
I don't know why, but when I try to open an inherited report, the PageCount property is 1!
I've created a simple example:
- A father report with just ReportTitle and a Footer;
- A child that extends the father.
The result of below code is 1 (one):
frxReport1.LoadFromFile('child.fr3');
ShowMessage(IntToStr(frxReport1.PagesCount));
Apparently the FastReport is missing the Page Tab, just reading the Data Tab.
What is weird, is that the father report and the child is too simple.
What am I doing wrong ? Is this a bug ?
I'm using the last version.
Please just create an example like I described above.
Thanx!
Best Regards
Thiago Flessak
Comments
I've created the same example (father and child) in runtime, and that worked! PagesCount is 2.
But, if I use designtime to create the father and then extend to child, PagesCount is 1.
PS: In designtime I'm using frxDesigner to set TemplateDir.
I guess the problem is on DesignTime